﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class UserControl_InfoSearch : System.Web.UI.UserControl
{
    static string infoType = "";   　　　　//信息类型
    Operation operation = new Operation();

    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        Session["key"] = txtKey.Text;
        if (Page.Title.Equals("科技成果超市---招聘信息") || Page.Title.IndexOf("用户") != -1)                 //主页中查询
        {
            infoType = "技术供应信息";
            Response.Redirect("../ShowPage/webSearchAll.aspx");
            //Response.Write(Request.Url.ToString());
            return;
        }
        else
        {
            //infoType = Page.Title.Substring(Page.Title.IndexOf("---") + 3);
            Response.Redirect(Request.Url.ToString());
            //Response.Write(Request.Url.ToString());
        }
        
        /*switch (infoType)                           //分页中信息查询
        {
            case "招聘信息":
                Response.Redirect("../ShowPage/webZP.aspx");
                break;
            case "求职信息":
                Response.Redirect("../ShowPage/webQZ.aspx");
                break;
            case "技术需求信息":
                Response.Redirect("../ShowPage/webJSXQ.aspx");
                break;
            case "技术供应信息":
                Response.Redirect("../ShowPage/webJSGY.aspx");
                break;
        }*/
    }
}
